<template>
  <div class="goodsWrap">
    <img v-bind:src="this.$Api.API_BASE_PIC + img" />
    <div>商品名称: {{goodsName}}</div>
    <div>售价: {{price}}</div>
  </div>
</template>

<script>
  export default {
    name: 'goodsItem',
    props: ['goodsName', 'price', 'img']
  }
</script>


<style scoped>
  h1, h2 {
    font-weight: normal;
  }
  img {
    height: 150px;
    width: 150px;
    margin: 10px;
  }

  .goodsWrap{
    height: 250px;
    width: 250px;
  }
</style>
